﻿using AutoTest.Domain.Entities;
using AutoTest.Domain.Enums;

namespace AutoTest.Business.Vo.UserInfo
{
    /// <summary>
    /// 用户登录信息
    /// </summary>
    public class LoginUserVo
    {
        ///<summary>
        /// 主键ID
        ///</summary>
        public long Id { get; set; } = 0;
        ///<summary>
        /// 头像Url地址
        ///</summary>
        public string IconUrl { get; set; } = string.Empty;
        ///<summary>
        /// 用户名
        ///</summary>
        public string UserName { get; set; } = string.Empty;
        ///<summary>
        /// 昵称
        ///</summary>
        public string NickName { get; set; } = string.Empty;
        ///<summary>
        /// 真实姓名
        ///</summary>
        public string RealName { get; set; } = string.Empty;
        ///<summary>
        /// 电话
        ///</summary>
        public string Phone { get; set; } = string.Empty;
        ///<summary>
        /// 邮箱地址
        ///</summary>
        public string Email { get; set; } = string.Empty;

        ///<summary>
        /// 性别，0：位置；1：男；2：女
        ///</summary>
        public EnumSex Sex { get; set; } = EnumSex.Unknown;
        ///<summary>
        /// 性别
        ///</summary>
        public string SexName { get; set; } = string.Empty;
        ///<summary>
        /// 国家
        ///</summary>
        public string Country { get; set; } = string.Empty;
        ///<summary>
        /// 省
        ///</summary>
        public string Province { get; set; } = string.Empty;
        ///<summary>
        /// 市
        ///</summary>
        public string City { get; set; } = string.Empty;
        ///<summary>
        /// 银行卡
        ///</summary>
        public string CreditCard { get; set; } = string.Empty;
        ///<summary>
        /// 商家
        ///</summary>
        public long ParentId { get; set; } = 0;
        ///<summary>
        /// 注册时间
        ///</summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        ///<summary>
        /// 有效时间
        ///</summary>
        public DateTime ValidTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 跳转地址
        /// </summary>
        public string ReturnUrl { get; set; } = "/";

        /// <summary>
        /// 邀请码
        /// </summary>
        public string InviteCode { get; set; } = string.Empty;

        /// <summary>
        /// 开放平台信息
        /// </summary>
        public List<OpenInfoVo> OpenInfos { get; set; } = new List<OpenInfoVo>();

        /// <summary>
        /// 邀请地址
        /// </summary>
        public string InviteUrl { get; set; } = string.Empty;

        /// <summary>
        /// 收款码
        /// </summary>
        public string PayCodeUrl { get; set; } = string.Empty;

        /// <summary>
        /// 
        /// </summary>
        public string Token { get; set; } = string.Empty;

        /// <summary>
        /// 
        /// </summary>
        public List<UserProductRelation> Products { get; set; } = new List<UserProductRelation>();
    }

}
